package com.ljq.apipassenger.controller;

import com.ljq.intemalcommon.dto.ResponseResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    /**
     * 需要有token才能返回
     */
    @PostMapping("authTest")
    public ResponseResult authTest(String token){
        return ResponseResult.success("authTest");
    }

    /**
     * 没有token也能返回
     */
    @GetMapping("noauthTest")
    public ResponseResult noauthTest(){
        return ResponseResult.success("noauthTest");
    }




}
